package com.vitech.javacertification.oo;

public class Constructors {

	
	public static void main(String ...s){
		
		Baseado b = new Baseado(new Integer(5).intValue());
		
		b.tesvarargs();
		
	}
	
	Constructors(){
		System.out.println("Super()");		
	}
	
	Constructors(int i){
		
		System.out.println("Super(int)");
	}
	
}


class Baseado extends Constructors{
	

	Baseado(){
		System.out.println("Derived()");
		
	}
	
	public void tesvarargs(int... i) {

		System.out.println("varargs");
	}

	Baseado(int i){

		
		System.out.println("Derived (int)");

	}
	
	Baseado(Integer i){

		System.out.println("Derived (Integer)");

	}
	
}
